package com.financing.wap.service.impl;

import java.sql.SQLException;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.financing.wap.dao.IWalletDao;
import com.financing.wap.dto.ProductDTO;
import com.financing.wap.service.IWalletService;



@Service("walletService")
public class WalletServiceImpl implements IWalletService{

	@Autowired
	private IWalletDao walletDaoImpl;

	Logger logger = Logger.getLogger(this.getClass());

	@Override
	public ProductDTO getProductByReceiptId(Integer associationId) throws SQLException {
		return walletDaoImpl.getProductByReceiptId(associationId);
	}

	@Override
	public ProductDTO getProductByOrderId(Integer associationId) throws SQLException {
		return walletDaoImpl.getProductByOrderId(associationId);
	}
	
	
}
